<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title> Arkanoid 3D </title>
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<script language="JavaScript" src="Alladyn.js"></script>
<script language="JavaScript">
<!--
function DivGarbage(){
var tab=[];
function g(){
n=Al.U();
is=0;
for(v in tab){if(!tab[v][1]){x=tab[v][0];tab[v][1]=1;is=1}}
if(!is){x=Al.N(n,100);tab[tab.length]=[x,1]}
//window.status=tab.length;
return x;
}
function t(lay){
for(v in tab){if(tab[v][0]==lay){tab[v][1]=0;tab[v][0].vHTML('');}}
}
return {get:g,Throw:t}
}

function init(){
Alladyn();
dg=DivGarbage();
an=Al.A();
var M=Math,R=M.PI/180,a=0;

function newBall(){
var p;
with(p=dg.get()){
vpos(300,300);
window.status=M.round(170*M.sin(a)+300);
with(van){KF({top:300,left:300},1);KF({left:M.round(170*M.cos(a)+300),top:M.round(170*M.sin(a)+300)},10)}
vHTML('<img src="ball.gif">');
an.push(p);a+=0.1;
}
an.go(50);
}
setInterval(newBall,1000);
}
//-->
</script>
</head>

<body onload="init()">
</body>
</html>
